import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"
// 冲刀资料查询
export const PunchingDataQuery = (style:string) => {
    return service.post<any,any>(`/bioDeptWrok/getCpCutQuery?style=${style}`)
}

// 冲刀部位资料查询
export const PunchingPartQuery = (cutNo:string) => {
    return service.post<any,any>(`/bioDeptWrok/getCpCutDetQuery?cutNo=${cutNo}`)
}

// 冲刀所用型体资料
export const TypeUsedForPunchingKnives= (cutNo:string) => {
    return service.post<any,any>(`/bioDeptWrok/getCpCutStyleQuery?cutNo=${cutNo}`)
}

// 冲刀资料新增
export const AddPunchingData = (parms:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/cpCutAdd`,parms)
}

// 冲刀删除
export const deletePunchingDate = (cutNo:string,slipFlag:string) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/cpCutDel?cutNo=${cutNo}&slipFlag=${slipFlag}`)
}

// 冲刀所用型体新增
export const AddCutStyle = (cutNo:string,style:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/cpCutStyleAdd?cutNo=${cutNo}`,style)
}

// 冲刀所用型体删除
export const DeleteCutStyle = (cutNo:string,style:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/cpCutStyleDel?cutNo=${cutNo}&style=${style}`)
}

// 冲刀部位新增
export const AddPunchingPartQuery = (parms:any) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/cpCutDetAdd`,parms)
}

// 冲刀部位删除
export const DeletePunchingPartQuery = (cutNo:string,slipFlag:string,partName:string) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/cpCutDetDel?cutNo=${cutNo}&slipFlag=${slipFlag}&partName=${partName}`)
}